 package com.sinven.service;


import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sinven.pojo.Comment;

public interface CommentService {

	boolean addComment(Comment comment) throws Exception;//增加评论
	boolean deleteComment(int cid) throws Exception;//删除评论
	boolean updateComment(int cid) throws Exception;//修改评论
	int SelectAllCommentBySelf(int cid) throws Exception;//查询评论数
	List<Comment> SelectComentCountBySelf(int c_aId) throws Exception;//查询所有
	int SelectCommentByArticle(int c_aId) throws Exception;//查询评论数
	Comment SelectOneComment(int cid) throws Exception;//查询一条评论
	@Select("select name from tb_test")
    List<Comment> findUsers() throws Exception;

    @Select("select * from tb_test limit #{start},#{perPageUsers}")
    List<Comment> findUsersByPage(@Param("start") int start, @Param("perPageUsers") int perPageUsers) throws Exception;

	
	
 }
